cmake_minimum_required(VERSION 3.5.1)
project(BinTree) # Binary Tree

set(BINTREE_SRC bintree.c)
include_directories(${PUBLIC_DEMO})

add_library(LBinTree STATIC ${BINTREE_SRC})
set_target_properties(LBinTree PROPERTIES OUTPUT_NAME lbintree)

add_library(lbintree SHARED ${BINTREE_SRC})

if(LINUX)
	install(TARGETS LBinTree ARCHIVE DESTINATION ${INSTALL_DIR}/lib/liblds)
	install(TARGETS lbintree LIBRARY DESTINATION ${INSTALL_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
	install(FILES ${INCLUDE_DIR}/Tree/bintree.h DESTINATION ${INSTALL_DIR}/include/liblds)
endif()
